/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.LSPviolation.impl;

import za.ac.cput.LSPviolation.AccountsService;

/**
 *
 * @author Enkosi
 */
public class CurrentAccountImpl extends Account implements AccountsService{

    public CurrentAccountImpl(int balance, int cost){
        super(balance, cost);
    }
    public CurrentAccountImpl(){}
    
    @Override
    public int annualSalary() {
        return (super.getBalance() * 12) + (super.getBalance() * (14 / 100));
    }

    @Override
    public int grossSalary() {
        return super.getBalance() - super.getCost();
    }
}
